home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Jumpstart / Multimedia Microsoft Jumpstart Version 1.1a (Microsoft).BIN / develpmt / drivers / mscdex / testdrv / makefile < prev    next >
Encoding:
Makefile  |  1992-02-05  |  1.9 KB  |  107 lines

  1. #   Makefile for TESTDRV, a testing suite for MSCDEX compatible device
  2. #   drivers.  The majority of error verification decisions are based 
  3. #   upon the behavior of the example HITACHIA.SYS driver.  Drivers not
  4. #    adherent to this test are not considered fully compatible with 
  5. #   MSCDEX specifications.
  6. #
  7. # The PREPARE define and PREPARE.C files are supplied to create binary 
  8. # archives for verification disks. 
  9. #
  10. # HISTORY:
  11. #   10/01/90 Final (v1.0) -by- JYG
  12. #
  13.  
  14. # USAGE:
  15. #   if debug:
  16. #       NMAKE DEBUG=YES
  17. #   else:
  18. #       NMAKE DEBUG=NO
  19. #
  20.  
  21. !if "$(DEBUG)" == "NO"
  22. DEF= -DTESTDRV 
  23. DEBUGOBJ=
  24. LOPT=
  25. COPT=-Ocit -Gs
  26. MOPT=
  27. !else
  28. DEF=-DDEBUG -DTESTDRV -DPREPARE
  29. DEBUGOBJ= prepare.obj
  30. LOPT=/CO
  31. COPT=-Zi -Ocit -Gs
  32. MOPT=-Zi
  33. !endif
  34.  
  35. CC  = cl -c -nologo -AS -W3 -Zp $(COPT) $(DEF)
  36. ASM = masm $(MOPT) $(DEF)
  37. LINK= link $(LOPT) /NOD/NOE/MAP/LI
  38. NAME= TESTDRV
  39. EXT = EXE
  40.  
  41. OBJ = testdrv.obj tests.obj setup.obj support.obj request.obj send.obj $(DEBUGOBJ)
  42.  
  43. LIBS = slibce
  44.  
  45.  
  46. .c.obj:
  47.     $(CC) $*.C
  48.  
  49. .asm.obj: 
  50.     $(ASM) $*;
  51.  
  52. goal: $(NAME).$(EXT)
  53.     @echo "Done making TESTDRV.EXE"
  54. #
  55. # linking step
  56. #
  57.  
  58. $(NAME).$(EXT): $(OBJ)
  59.     $(LINK) @<<
  60.     $(OBJ) ,
  61.     $(NAME).$(EXT) ,
  62.     $(NAME) ,
  63.     $(LIBS) ;
  64. <<
  65.  
  66. !if "$(DEBUG)" != "NO"
  67. #    cvpack -p $(NAME).$(EXT)
  68. #    mapsym $(NAME)
  69. !endif
  70.  
  71.  
  72.  
  73. clean:
  74.    del $(NAME).$(EXT)
  75.    del *.obj
  76.    del *.map
  77.    del *.sym
  78.  
  79. #depend:
  80. #   mv makefile makefile.old
  81. #   sed "/^# START Dependencies/,/^# END Dependencies/D" makefile.old > makefile
  82. #   del makefile.old
  83. #   echo # START Dependencies >> makefile
  84. #   includes -l *.c *.asm >> makefile
  85. #   echo # END Dependencies >> makefile
  86.  
  87.  
  88.  
  89. # START Dependencies 
  90.  
  91. prepare.obj: prepare.c
  92.  
  93. request.obj: request.c request.h
  94.  
  95. setup.obj: setup.c 
  96.  
  97. send.obj: send.asm
  98.  
  99. support.obj: support.c test.h
  100.  
  101. testdrv.obj: testdrv.c test.h
  102.  
  103. tests.obj: tests.c test.h
  104.  
  105. # END Dependencies 
  106.